package com.zhouxiaoge.decoratorpatter.decorator;

import com.zhouxiaoge.decoratorpatter.interfaces.Hero;

public class Skills implements Hero {

    private Hero hero;

    public Skills(Hero hero) {
        this.hero = hero;
    }


    @Override
    public void learnSkills() {
        if (hero != null) {
            hero.learnSkills();
        }
    }
}
